<? $cnt = count ( $dataHotels ); ?>

<div class="row">

    <ul class="thumbnails">

        <?
            $i = 0;
            foreach ( $dataHotels as $key => $hotel ) :

                if ( in_array ( $hotel->object_type_ID, $filter ) ):
                    $i++;


                    $obj_name = URLify::filter ( $hotel->object_name );
                    $href = lang_url ( 'accommodation/' . $obj_name . '-' . $hotel->object_ID . '?preview=1&room_id=' . $hotel->lowest_price_room_id ).lcu();
                    ?>


                    <li class="span4">

                        <? $thumbnail = HOST_URL_HOTELS .  $hotel->photo_path . '/thumb_300x178/' . $hotel->photo_name; ?>

                        <a class="thumbnail" href="<?= $href ?>">

                            <? if ( isset ( $hotel->object_recommended ) && $hotel->object_recommended != "" ): ?>
                                <div class="recomended"></div>
                            <? endif; ?>

                            <img src="<?= $thumbnail ?>" alt="<?= $hotel->photo_title ?>" class="img-rounded" />

                            <div class="black">

                                <h3>
                                    <?= str_replace ( "- Montenegro", "", $hotel->object_name ) ?> 

                                    <? if ( isset ( $hotel->object_number_of_stars ) && $hotel->object_number_of_stars != "" ): ?>
                                        <span class="hotel-star-small star_<?= $hotel->object_number_of_stars ?>">&nbsp;</span> 
                                    <? endif; ?>



                                </h3>
                                <?= lang('from'); ?> <big>&nbsp;<?= round ( $hotel->lowest_price ) ?><?= lang(currency_sign()) ?> </big>


                            </div>

                        </a>
                    </li>

                    <?
                    if ( $i == 4 )
                        break 1;
                endif;
            endforeach;
        ?> 

    </ul>

</div>